#include<bits/stdc++.h>
using namespace std;
int main() {
    int t;
    int res = 0;
    while (cin >> t) {
        res++;
        if (t == 250) break;
    }
    cout << res << endl;
    return 0;
}